package com.xiaoke.mapper;

import com.xiaoke.entity.UserCoupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserCouponMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserCoupon record);

    int insertSelective(UserCoupon record);

    UserCoupon selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserCoupon record);

    int updateByPrimaryKey(UserCoupon record);

    UserCoupon selectByCouponIdAndUserId(@Param("couponId") String couponId,@Param("userId") String userId);
}